package com.example.demo.web.manage.convert;

import com.example.demo.web.manage.dto.UserDto;
import com.example.demo.web.manage.model.UserEntity;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

/**
 * @author airhead
 */
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface UserConvert {
  UserConvert INSTANCE = Mappers.getMapper(UserConvert.class);

  UserDto convert(UserEntity bean);

  UserEntity convert(UserDto bean);
}
